package com.whucke.im.cmd;

import org.springframework.util.StringUtils;

/**
 * 命令行结果格式化信息
 *
 * @author Zhang Peng
 * @since 2019/2/23 21:00
 */
public class PrefixedResult {
    /**
     * 命令行前缀
     */
    private String prefix;

    /**
     * 连接符
     */
    private String connector = ":>";

    public PrefixedResult() {
    }

    public PrefixedResult(String prefix, String connector) {
        this.prefix = prefix;
        if (!StringUtils.isEmpty(connector)) {
            this.connector = connector;
        }
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getConnector() {
        return connector;
    }

    public void setConnector(String connector) {
        this.connector = connector;
    }
}
